package com.towexin.application.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.towexin.application.system.domain.Role;
import java.util.List;
import java.util.Map;

public interface RoleService extends IService<Role> {
    boolean saveOrUpdateOne(Role role);

    boolean deleteOneById(String id);

    List<Role> selectAllByUserName();

    List<Map<String, Object>> selectRoleTree(boolean flag);

    List<Map<String, Object>> getAuthorityByRid(String id);

    boolean roleAuthorization(String rId, String authIdJson);

    boolean setDefaultRole(String id, boolean defaultRole);

    boolean changeStatus(String id, Boolean status);

    Role getByUserName(String userName);

    List<String> getRoleAndDefaultMarkByUserName(String userName);

    List<String> getParentIdsByUserName(String userName);
}
